package epoch.game.core.timer;

import epoch.game.core.thread.ServerThread;

public class FixedDelayServerTimerTask extends FixedRateServerTimerTask {

	public FixedDelayServerTimerTask(ServerThread serverThread) {
		super(serverThread);
	}

	/**
	 * 开始执行定任务
	 */
	public void start() {
		if (!stoped) {
			return;
		}
		stoped = false;
		scheduledFuture = ServerTimerManager.getInstance().scheduleWithFixedDelay(this, 0L, this.serverThread.getHeart());
	}

}
